package com.xiaoshuidi.cloud.module.report.dal.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.dal.DO.ContractSettlementDO;
import com.xiaoshuidi.cloud.module.report.xxljob.PO.CollectionHandlePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface ContractSettlementMapper extends BaseMapperX<ContractSettlementDO> {

    List<Long> queryByContractIdOnPayedInPayTime(@Param("contractId")Long contractId, @Param("start") LocalDateTime start, @Param("end")LocalDateTime end);

    List<ContractSettlementDO> selectByContractId(@Param("contractId")Long contractId);

    List<ContractSettlementDO> selectListById(@Param("id")Long id);

    List<ContractSettlementDO> selectListForSummary(CollectionHandlePO param);
}
